package com.sxf.redis.properties;

import java.util.List;

/**
 * @description: 集群模式
 * @author: zhangyb@ccccit.com.cn
 * @date: 2021年1月4日 上午9:20:08
 */
public class ClusterProperties extends RedissonBaseProperties {
	private int slaveSubscriptionConnectionMinimumIdleSize = 1;
	private int slaveSubscriptionConnectionPoolSize = 50;
	private int slaveConnectionMinimumIdleSize = 32;
	private int slaveConnectionPoolSize = 64;
	private int masterConnectionMinimumIdleSize = 32;
	private int masterConnectionPoolSize = 64;
	private String readMode = "SLAVE";
	private List<String> nodeAddresses;
	private int scanInterval = 1000;

	public int getSlaveSubscriptionConnectionMinimumIdleSize() {
		return slaveSubscriptionConnectionMinimumIdleSize;
	}

	public void setSlaveSubscriptionConnectionMinimumIdleSize(int slaveSubscriptionConnectionMinimumIdleSize) {
		this.slaveSubscriptionConnectionMinimumIdleSize = slaveSubscriptionConnectionMinimumIdleSize;
	}

	public int getSlaveSubscriptionConnectionPoolSize() {
		return slaveSubscriptionConnectionPoolSize;
	}

	public void setSlaveSubscriptionConnectionPoolSize(int slaveSubscriptionConnectionPoolSize) {
		this.slaveSubscriptionConnectionPoolSize = slaveSubscriptionConnectionPoolSize;
	}

	public int getSlaveConnectionMinimumIdleSize() {
		return slaveConnectionMinimumIdleSize;
	}

	public void setSlaveConnectionMinimumIdleSize(int slaveConnectionMinimumIdleSize) {
		this.slaveConnectionMinimumIdleSize = slaveConnectionMinimumIdleSize;
	}

	public int getSlaveConnectionPoolSize() {
		return slaveConnectionPoolSize;
	}

	public void setSlaveConnectionPoolSize(int slaveConnectionPoolSize) {
		this.slaveConnectionPoolSize = slaveConnectionPoolSize;
	}

	public int getMasterConnectionMinimumIdleSize() {
		return masterConnectionMinimumIdleSize;
	}

	public void setMasterConnectionMinimumIdleSize(int masterConnectionMinimumIdleSize) {
		this.masterConnectionMinimumIdleSize = masterConnectionMinimumIdleSize;
	}

	public int getMasterConnectionPoolSize() {
		return masterConnectionPoolSize;
	}

	public void setMasterConnectionPoolSize(int masterConnectionPoolSize) {
		this.masterConnectionPoolSize = masterConnectionPoolSize;
	}

	public String getReadMode() {
		return readMode;
	}

	public void setReadMode(String readMode) {
		this.readMode = readMode;
	}

	public List<String> getNodeAddresses() {
		return nodeAddresses;
	}

	public void setNodeAddresses(List<String> nodeAddresses) {
		this.nodeAddresses = nodeAddresses;
	}

	public int getScanInterval() {
		return scanInterval;
	}

	public void setScanInterval(int scanInterval) {
		this.scanInterval = scanInterval;
	}

}